﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TCDMaster.Master" AutoEventWireup="true" CodeBehind="XemDiemSV.aspx.cs" Inherits="TraCuuDiemNhom3.XemDiemSV" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lbTest" runat="server" Text="Label" Visible="False"></asp:Label>
    <br />
    Form Xem Điểm Dành Cho Sinh Viên<br />
    <asp:Label ID="Label1" runat="server" Text="Học kỳ cần xem: "></asp:Label>
    <asp:DropDownList ID="ddlHocKy" runat="server" Height="25px" Width="203px">
        <asp:ListItem Value="0">Tất cả</asp:ListItem>
        <asp:ListItem Value="1">Học kỳ 1</asp:ListItem>
        <asp:ListItem Value="2">Học kỳ 2</asp:ListItem>
        <asp:ListItem Value="3">Học kỳ 3</asp:ListItem>
        <asp:ListItem Value="4">Học kỳ 4</asp:ListItem>
        <asp:ListItem Value="5">Học kỳ 5</asp:ListItem>
        <asp:ListItem Value="6">Học kỳ 6</asp:ListItem>
        <asp:ListItem Value="7">Học kỳ 7</asp:ListItem>
        <asp:ListItem Value="8">Học kỳ 8</asp:ListItem>
    </asp:DropDownList>
    <asp:Button ID="btnXemDiem" runat="server" Text="Xem" Width="150px" 
        OnClick="btnXem_Click" Height="25px" />
    <asp:LinkButton ID="lbTroVeLogin" runat="server" PostBackUrl="~/Default.aspx">Thoát</asp:LinkButton>
    <br />
   <asp:GridView ID="gvDiem" runat="server" EnableModelValidation="True" 
        AutoGenerateColumns="False" 
         CellPadding="4" 
        ForeColor="#333333" GridLines="None">
       <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="mamh" HeaderText="Mã môn học" />
        <asp:BoundField DataField="masv" HeaderText="Mã sinh viên" />
        <asp:BoundField DataField="hocky" HeaderText="Học kỳ" />
        <asp:TemplateField HeaderText="KT cột 1">
            <ItemTemplate >
                <asp:TextBox id="txtKt1" Text='<%#Eval("KT1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
            
        <asp:TemplateField HeaderText="KT cột 2">
        <ItemTemplate >
                <asp:TextBox id="txtKt2"  Text='<%#Eval("KT2")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 3">
            <ItemTemplate >
                <asp:TextBox id="txtKt3"  Text='<%#Eval("KT3")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 4">
            <ItemTemplate >
                <asp:TextBox id="txtKt4" Text='<%#Eval("KT4")%>'   Width="50" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="KT cột 5" >
            <ItemTemplate >
                <asp:TextBox id="txtKt5"  Text='<%#Eval("KT1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
         <asp:TemplateField HeaderText="Thi KT" >
            <ItemTemplate >
                <asp:TextBox id="txtThi"  Text='<%#Eval("thi1")%>' Width=50 runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
       <asp:TemplateField HeaderText="Tổng kết" >
            <ItemTemplate >
                <asp:TextBox id="txtTk"  Text='<%#Eval("tk")%>' Width=50 runat="server" />
                <asp:HiddenField runat="server" ID="hidenMaSV" Value='<%#Eval("MaSV")%>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
       <EditRowStyle BackColor="#7C6F57" />
       <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
       <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
       <RowStyle BackColor="#E3EAEB" />
       <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
</asp:GridView>
    </asp:Content>
